package org.jeecg.modules.water.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.water.entity.DailyData;
import org.jeecg.modules.water.entity.LwgyJointWater;
import org.jeecg.modules.water.mapper.LwgyJointWaterMapper;
import org.jeecg.modules.water.service.ILwgyJointWaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 抄表信息（水）
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Service
public class LwgyJointWaterServiceImpl extends ServiceImpl<LwgyJointWaterMapper, LwgyJointWater> implements ILwgyJointWaterService {

    @Autowired
    private LwgyJointWaterMapper lwgyJointWaterMapper;

    public List<DailyData> getInfoByDate(String starttime, String endtime){
        return lwgyJointWaterMapper.getInfoByDate(starttime,endtime);
    }

    @Override
    public IPage<LwgyJointWater> queryJointWaterList(Page<LwgyJointWater> page, QueryWrapper<LwgyJointWater> queryWrapper) {
        return page.setRecords(lwgyJointWaterMapper.queryJointWaterList(page,queryWrapper));
    }
}
